import {Response} from "express";

import PWSApp from "../../core/app";
import {BaseAction} from "../../core/base.action";
import {MongoColls} from "../../config/mongo";
import Request = Express.Request;

export default class ApiBaseAction extends BaseAction {

    constructor(app: PWSApp) {
        super(app);
    }

    name() { return `ApiBaseAction`; }

    protected _errHandler(req: Request, res: Response, err: any): void {
        res.send({err_code: err.err_code});
    }
}